# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         demo0922
# Description:
# Author:       $赵怡蕾
# Date:         2019/3/20
#-------------------------------------------------------------------------------

class Myexception(Exception):
    def __init__(self,*args,**kwargs):    # real aignature unknown
        # print(args)
        for item in args:
            print(item)
        self.msg = args[2]

    def __iter__(self):
        return self.msg

a = 10
b = 0

if b == 0:
    # mye = Myexception('系统提示','除数不能为0','下次不要这样了....')
    # print(id(mye))
    print(Myexception('系统提示','除数不能为0','下次不要这样了....'))
    raise Exception('系统提示','除数不能为0','下次不要这样了....')
else:
    print(a/b)

print('-------------------------------')

def ab_div(a,b):
    if b == 0:
        return '除数不能为0'
    else:
        return a / b
    c = ab_div(a,b)
    print(c)